package p270jp.pxv.android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.google.android.material.textview.MaterialTextView;

/* renamed from: jp.pxv.android.view.SelectableTextView */
/* loaded from: classes2.dex */
public class SelectableTextView extends MaterialTextView {
    public SelectableTextView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    @Override // android.view.View
    public boolean dispatchTouchEvent(MotionEvent motionEvent) {
        if (getSelectionStart() != getSelectionEnd() && motionEvent.getActionMasked() == 0) {
            clearFocus();
        }
        return super.dispatchTouchEvent(motionEvent);
    }
}
